package cn.lookup;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import tk.mybatis.spring.annotation.MapperScan;

import javax.sql.DataSource;

/*Springboot启动引导类*/
@SpringBootApplication
//@MapperScan(basePackages = {"cn.lookup.mapper"})   //mybatis扫描全部的mapper   不用在每一个mapper接口添加@Mapper注解标识
@MapperScan(basePackages = {"cn.lookup.mapper"})  //通用mapper扫描
public class Application {
    public static void main(String[] args) {
        SpringApplication.run(Application.class,args);
    }
}
